find . -exec grep -l 'string' {} \; -print 2>/dev/null

Posted by 01010101 on Stack Overflow See other posts from Stack Overflow or by 01010101
Published on 2010-04-07T02:11:11Z Indexed on 2010/04/07 2:13 UTC
Read the original article Hit count: 273

Filed under:
|
|

it lists all files in "." that contain the string "string" but don't show dirs with permission denied.

What would it be the equivalent of that but squeezing xargs in between?

© Stack Overflow or respective owner

Related posts about find

Related posts about grep